export default {
    state: {
        weather: "",
        accidentTime: "",
        accidentAddress: "",
        description: "",
        law: "",
        rule: "",
        personInfoList: [
            {
                index: "0",
                sort: "0",
                accidentPersonNum: "当事人1",
                name: "",
                idNumber: "",
                phoneNumber: "",
                drivingLicenseNumber: "",
                carNumber: "",
                sign: "nosign.png",
                carInfo: "",
                dutyId: ""
            }
        ],
        imageInfoList: [],
        showSign: false,
    },
    mutations: {
        setWeather(state, params){
            state.weather = params;
        },
        setAccidentTime(state, params){
            state.accidentTime = params;
        },
        setAccidentAddress(state, params){
            state.accidentAddress = params;
        },
        setDescription(state, params){
            state.description = params;
        },
        setLaw(state, params){
            state.law = params;
        },
        setRule(state, params){
            state.rule = params;
        },
        setPersonInfoList(state, params){
            state.personInfoList = params;
        },
        setImageInfoList(state, params){
            state.imageInfoList = params;
        },
        setShowSign(state, params){
            state.showSign = params;
        }
    },
    actions: {

    }
}
